package com.haoji.upload.entity;

import com.haoji.upload.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Table(name = "t_dict")
@EqualsAndHashCode(callSuper = false)
@ToString
public class Dict extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;
        
    /**
    * 主键ID
    */
    @Id
  	@GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
    /**
    * 字典项值
    */
    private String dictCode;
    
    /**
    * 字典编码
    */
    private String value;
    
    /**
    * 字典项文本
    */
    private String text;
    
	/**
    * 字典项序号
    */
    private Byte sort;
}
